r:=s=>'(\''+(u:=(i,k)=>i::{len(s)->k,_->(c:=(s.(i)::{'\''->'\\\'','\\'->'\\\\',_->s.(i)}),u(i+1,k+c))})(0,'')+'\')',(s=>out(s+r(s)))('r:=s=>\'(\\\'\'+(u:=(i,k)=>i::{len(s)->k,_->(c:=(s.(i)::{\'\\\'\'->\'\\\\\\\'\',\'\\\\\'->\'\\\\\\\\\',_->s.(i)}),u(i+1,k+c))})(0,\'\')+\'\\\')\',(s=>out(s+r(s)))')
